//
//  ProductPropDeleteCell.h
//  LazyCat
//
//  Created by Abner on 16/9/22.
//  Copyright © 2016年 zhanshu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddProduct.h"

@protocol ProductPropDeleteCellDelegate <NSObject>

-(void)propDeleteBtClicked:(UIButton *)deleteBt;

@end
/**
 *  "添加商品"多属性【有删除，因为属性可有可无】
 */
@interface ProductPropDeleteCell : UITableViewCell<UITextFieldDelegate>

@property(nonatomic,strong)UILabel *propNameLb;
@property(nonatomic,strong)UILabel *propValueLb;

@property(nonatomic,strong)UITextField *propNameTf;
@property(nonatomic,strong)UITextField *propValueTf;

/** 删除按钮 */
@property(nonatomic,strong)UIButton *deleteBT;
/** 规格模型 */
@property(nonatomic,strong)LCProductProp *aProp;

@property(nonatomic,assign)id<ProductPropDeleteCellDelegate> delegate;

/**
 *  给VC传值，需要知道当前row
 */
@property(nonatomic,copy)void(^propDeleteBlock)(LCProductProp *aProp,NSInteger currentRow);
/**
 *  给ProductPropDeleteCell设置数据（扫码或输入条码拉取商品成功）
 *  @param aProp 属性模型
 *  @param btTag 删除按钮tag(用于点击删除时知道是哪一row)
 */
-(void)setupProductPropDeleteCell:(LCProductProp *)aProp deleteBtTag:(NSInteger)btTag;

+(instancetype)cellWithTableView:(UITableView *)tableView;

@end
